package event
{
	import flash.events.Event;
	
	public class MyEvent extends Event{
		public var data:int;
		public static const DATA:String="DATA";
		public function MyEvent(type:String,_data:int){
			data = _data;
			super(type);
		}
		
		override public function clone():Event{
			return new MyEvent(type,data);
		}
		
		override public function toString():String{
			return formatToString("MyEvent","type","data");
		}
		
	}
}